package com.ccb.sc.common.modules.order.service.impl;

import com.ccb.sc.common.modules.order.service.IOrderCommentService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ccb.sc.common.modules.order.entity.OrderComment;
import com.ccb.sc.common.modules.order.mapper.OrderCommentMapper;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 订单评价 服务实现类
 * </p>
 *
 * @author ken
 * @since 2020-10-16
 */
@Service
public class OrderCommentServiceImpl extends ServiceImpl<OrderCommentMapper, OrderComment> implements IOrderCommentService {

    @Override
    public OrderComment findByOrderId(String orderId) {
        return this.getOne(new QueryWrapper<OrderComment>().lambda().eq(OrderComment::getOrderId, orderId));
    }
}
